//
//  HMEmojiCell.swift
//  swift微博项目
//
//  Created by huodian on 16/10/8.
//  Copyright © 2016年 huodian. All rights reserved.
//

import UIKit

class HMEmojiCell: UICollectionViewCell {
    
    var indexpath:IndexPath?{
     
        didSet{
            
            textLable.text = "第\(indexpath!.section)组,第\(indexpath!.item)元素"
            
            
        }
        
        
        
    }
    
    
    override init(frame: CGRect) {
        
        super.init(frame: frame)
        
        setMyUI()
        
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    func setMyUI(){
      
        self.contentView.addSubview(textLable)
        
        textLable.snp.makeConstraints { (make) in
            
            make.top.leading.equalTo(self.contentView)
        }
        
        
        
    }
    
    
    lazy var  textLable:UILabel = UILabel()
}
